/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Recruit } from '../models/Recruit';
import type { RIPageRecruit } from '../models/RIPageRecruit';
import type { RIPageRecruitApply } from '../models/RIPageRecruitApply';
import type { RString } from '../models/RString';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class RecruitControllerService {

    /**
     * step 1: 管理员查看简历，筛选用户
     * @param current
     * @returns RIPageRecruit OK
     * @throws ApiError
     */
    public static selectAll(
        current: number,
    ): CancelablePromise<RIPageRecruit> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recruit/selectAll',
            query: {
                'current': current,
            },
        });
    }

    /**
     * 根据用户，来获取用户信息
     * @param current
     * @returns RIPageRecruitApply OK
     * @throws ApiError
     */
    public static selectAllByUser1(
        current: number,
    ): CancelablePromise<RIPageRecruitApply> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recruit/selectAllByUser',
            query: {
                'current': current,
            },
        });
    }

    /**
     * step 2: 管理员查看简历，筛选用户，给笔试或面试机会
     * @param requestBody
     * @returns RString OK
     * @throws ApiError
     */
    public static pass(
        requestBody: Array<number>,
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recruit/pass',
            body: requestBody,
            mediaType: 'application/json',
        });
    }

    /**
     * 添加求职信息
     * @param requestBody
     * @returns RString OK
     * @throws ApiError
     */
    public static addRecruit(
        requestBody: Recruit,
    ): CancelablePromise<RString> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/recruit/addRecruit',
            body: requestBody,
            mediaType: 'application/json',
        });
    }

}
